package qldc.pm.tiensu.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import qldc.pm.tiensu.model.LichSuXoaAnTich;

import java.util.List;

/**
 * The persistence utility for the lich su xoa an tich service. This utility wraps {@link LichSuXoaAnTichPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see LichSuXoaAnTichPersistence
 * @see LichSuXoaAnTichPersistenceImpl
 * @generated
 */
public class LichSuXoaAnTichUtil {
    private static LichSuXoaAnTichPersistence _persistence;

    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
     */

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
     */
    public static void clearCache() {
        getPersistence().clearCache();
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
     */
    public static void clearCache(LichSuXoaAnTich lichSuXoaAnTich) {
        getPersistence().clearCache(lichSuXoaAnTich);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
     */
    public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
        throws SystemException {
        return getPersistence().countWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
     */
    public static List<LichSuXoaAnTich> findWithDynamicQuery(
        DynamicQuery dynamicQuery) throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
     */
    public static List<LichSuXoaAnTich> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end)
        throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
     */
    public static List<LichSuXoaAnTich> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end,
        OrderByComparator orderByComparator) throws SystemException {
        return getPersistence()
                   .findWithDynamicQuery(dynamicQuery, start, end,
            orderByComparator);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
     */
    public static LichSuXoaAnTich update(LichSuXoaAnTich lichSuXoaAnTich)
        throws SystemException {
        return getPersistence().update(lichSuXoaAnTich);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
     */
    public static LichSuXoaAnTich update(LichSuXoaAnTich lichSuXoaAnTich,
        ServiceContext serviceContext) throws SystemException {
        return getPersistence().update(lichSuXoaAnTich, serviceContext);
    }

    /**
    * Returns the lich su xoa an tich where tienSuId = &#63; or throws a {@link qldc.pm.tiensu.NoSuchLichSuXoaAnTichException} if it could not be found.
    *
    * @param tienSuId the tien su ID
    * @return the matching lich su xoa an tich
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich findByTienSuId(
        long tienSuId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence().findByTienSuId(tienSuId);
    }

    /**
    * Returns the lich su xoa an tich where tienSuId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
    *
    * @param tienSuId the tien su ID
    * @return the matching lich su xoa an tich, or <code>null</code> if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich fetchByTienSuId(
        long tienSuId)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByTienSuId(tienSuId);
    }

    /**
    * Returns the lich su xoa an tich where tienSuId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
    *
    * @param tienSuId the tien su ID
    * @param retrieveFromCache whether to use the finder cache
    * @return the matching lich su xoa an tich, or <code>null</code> if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich fetchByTienSuId(
        long tienSuId, boolean retrieveFromCache)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByTienSuId(tienSuId, retrieveFromCache);
    }

    /**
    * Removes the lich su xoa an tich where tienSuId = &#63; from the database.
    *
    * @param tienSuId the tien su ID
    * @return the lich su xoa an tich that was removed
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich removeByTienSuId(
        long tienSuId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence().removeByTienSuId(tienSuId);
    }

    /**
    * Returns the number of lich su xoa an tichs where tienSuId = &#63;.
    *
    * @param tienSuId the tien su ID
    * @return the number of matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static int countByTienSuId(long tienSuId)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countByTienSuId(tienSuId);
    }

    /**
    * Returns all the lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @return the matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich);
    }

    /**
    * Returns a range of all the lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.LichSuXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param start the lower bound of the range of lich su xoa an tichs
    * @param end the upper bound of the range of lich su xoa an tichs (not inclusive)
    * @return the range of matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, start, end);
    }

    /**
    * Returns an ordered range of all the lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.LichSuXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param start the lower bound of the range of lich su xoa an tichs
    * @param end the upper bound of the range of lich su xoa an tichs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, start, end, orderByComparator);
    }

    /**
    * Returns the first lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching lich su xoa an tich
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich findByHoTen_MaSoHoSo_NgayLapHoSo_First(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo_First(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, orderByComparator);
    }

    /**
    * Returns the first lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching lich su xoa an tich, or <code>null</code> if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich fetchByHoTen_MaSoHoSo_NgayLapHoSo_First(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByHoTen_MaSoHoSo_NgayLapHoSo_First(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, orderByComparator);
    }

    /**
    * Returns the last lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching lich su xoa an tich
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich findByHoTen_MaSoHoSo_NgayLapHoSo_Last(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo_Last(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, orderByComparator);
    }

    /**
    * Returns the last lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching lich su xoa an tich, or <code>null</code> if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich fetchByHoTen_MaSoHoSo_NgayLapHoSo_Last(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByHoTen_MaSoHoSo_NgayLapHoSo_Last(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, orderByComparator);
    }

    /**
    * Returns the lich su xoa an tichs before and after the current lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param lichSuXoaAnTichId the primary key of the current lich su xoa an tich
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next lich su xoa an tich
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a lich su xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich[] findByHoTen_MaSoHoSo_NgayLapHoSo_PrevAndNext(
        long lichSuXoaAnTichId, java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo_PrevAndNext(lichSuXoaAnTichId,
            hoVaTenDoiTuongTienSu, maHoSoXoaAnTich, ngayYeuCauXoaAnTich,
            orderByComparator);
    }

    /**
    * Removes all the lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63; from the database.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @throws SystemException if a system exception occurred
    */
    public static void removeByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence()
            .removeByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich);
    }

    /**
    * Returns the number of lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @return the number of matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static int countByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich);
    }

    /**
    * Returns all the lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @return the matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienSu, java.lang.String maHoSoXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo(hoVaTenDoiTuongTienSu, maHoSoXoaAnTich);
    }

    /**
    * Returns a range of all the lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.LichSuXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param start the lower bound of the range of lich su xoa an tichs
    * @param end the upper bound of the range of lich su xoa an tichs (not inclusive)
    * @return the range of matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, start, end);
    }

    /**
    * Returns an ordered range of all the lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.LichSuXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param start the lower bound of the range of lich su xoa an tichs
    * @param end the upper bound of the range of lich su xoa an tichs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, start, end, orderByComparator);
    }

    /**
    * Returns the first lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching lich su xoa an tich
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich findByHoTen_MaSoHoSo_First(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_First(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Returns the first lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching lich su xoa an tich, or <code>null</code> if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich fetchByHoTen_MaSoHoSo_First(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByHoTen_MaSoHoSo_First(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Returns the last lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching lich su xoa an tich
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich findByHoTen_MaSoHoSo_Last(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_Last(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Returns the last lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching lich su xoa an tich, or <code>null</code> if a matching lich su xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich fetchByHoTen_MaSoHoSo_Last(
        java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByHoTen_MaSoHoSo_Last(hoVaTenDoiTuongTienSu,
            maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Returns the lich su xoa an tichs before and after the current lich su xoa an tich in the ordered set where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param lichSuXoaAnTichId the primary key of the current lich su xoa an tich
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next lich su xoa an tich
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a lich su xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich[] findByHoTen_MaSoHoSo_PrevAndNext(
        long lichSuXoaAnTichId, java.lang.String hoVaTenDoiTuongTienSu,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_PrevAndNext(lichSuXoaAnTichId,
            hoVaTenDoiTuongTienSu, maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Removes all the lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63; from the database.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @throws SystemException if a system exception occurred
    */
    public static void removeByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienSu, java.lang.String maHoSoXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence()
            .removeByHoTen_MaSoHoSo(hoVaTenDoiTuongTienSu, maHoSoXoaAnTich);
    }

    /**
    * Returns the number of lich su xoa an tichs where hoVaTenDoiTuongTienSu LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienSu the ho va ten doi tuong tien su
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @return the number of matching lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static int countByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienSu, java.lang.String maHoSoXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countByHoTen_MaSoHoSo(hoVaTenDoiTuongTienSu, maHoSoXoaAnTich);
    }

    /**
    * Caches the lich su xoa an tich in the entity cache if it is enabled.
    *
    * @param lichSuXoaAnTich the lich su xoa an tich
    */
    public static void cacheResult(
        qldc.pm.tiensu.model.LichSuXoaAnTich lichSuXoaAnTich) {
        getPersistence().cacheResult(lichSuXoaAnTich);
    }

    /**
    * Caches the lich su xoa an tichs in the entity cache if it is enabled.
    *
    * @param lichSuXoaAnTichs the lich su xoa an tichs
    */
    public static void cacheResult(
        java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> lichSuXoaAnTichs) {
        getPersistence().cacheResult(lichSuXoaAnTichs);
    }

    /**
    * Creates a new lich su xoa an tich with the primary key. Does not add the lich su xoa an tich to the database.
    *
    * @param lichSuXoaAnTichId the primary key for the new lich su xoa an tich
    * @return the new lich su xoa an tich
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich create(
        long lichSuXoaAnTichId) {
        return getPersistence().create(lichSuXoaAnTichId);
    }

    /**
    * Removes the lich su xoa an tich with the primary key from the database. Also notifies the appropriate model listeners.
    *
    * @param lichSuXoaAnTichId the primary key of the lich su xoa an tich
    * @return the lich su xoa an tich that was removed
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a lich su xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich remove(
        long lichSuXoaAnTichId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence().remove(lichSuXoaAnTichId);
    }

    public static qldc.pm.tiensu.model.LichSuXoaAnTich updateImpl(
        qldc.pm.tiensu.model.LichSuXoaAnTich lichSuXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().updateImpl(lichSuXoaAnTich);
    }

    /**
    * Returns the lich su xoa an tich with the primary key or throws a {@link qldc.pm.tiensu.NoSuchLichSuXoaAnTichException} if it could not be found.
    *
    * @param lichSuXoaAnTichId the primary key of the lich su xoa an tich
    * @return the lich su xoa an tich
    * @throws qldc.pm.tiensu.NoSuchLichSuXoaAnTichException if a lich su xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich findByPrimaryKey(
        long lichSuXoaAnTichId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tiensu.NoSuchLichSuXoaAnTichException {
        return getPersistence().findByPrimaryKey(lichSuXoaAnTichId);
    }

    /**
    * Returns the lich su xoa an tich with the primary key or returns <code>null</code> if it could not be found.
    *
    * @param lichSuXoaAnTichId the primary key of the lich su xoa an tich
    * @return the lich su xoa an tich, or <code>null</code> if a lich su xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tiensu.model.LichSuXoaAnTich fetchByPrimaryKey(
        long lichSuXoaAnTichId)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByPrimaryKey(lichSuXoaAnTichId);
    }

    /**
    * Returns all the lich su xoa an tichs.
    *
    * @return the lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll();
    }

    /**
    * Returns a range of all the lich su xoa an tichs.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.LichSuXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of lich su xoa an tichs
    * @param end the upper bound of the range of lich su xoa an tichs (not inclusive)
    * @return the range of lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end);
    }

    /**
    * Returns an ordered range of all the lich su xoa an tichs.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tiensu.model.impl.LichSuXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of lich su xoa an tichs
    * @param end the upper bound of the range of lich su xoa an tichs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tiensu.model.LichSuXoaAnTich> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end, orderByComparator);
    }

    /**
    * Removes all the lich su xoa an tichs from the database.
    *
    * @throws SystemException if a system exception occurred
    */
    public static void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeAll();
    }

    /**
    * Returns the number of lich su xoa an tichs.
    *
    * @return the number of lich su xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static int countAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countAll();
    }

    public static LichSuXoaAnTichPersistence getPersistence() {
        if (_persistence == null) {
            _persistence = (LichSuXoaAnTichPersistence) PortletBeanLocatorUtil.locate(qldc.pm.tiensu.service.ClpSerializer.getServletContextName(),
                    LichSuXoaAnTichPersistence.class.getName());

            ReferenceRegistry.registerReference(LichSuXoaAnTichUtil.class,
                "_persistence");
        }

        return _persistence;
    }

    /**
     * @deprecated As of 6.2.0
     */
    public void setPersistence(LichSuXoaAnTichPersistence persistence) {
    }
}
